<?php


namespace Modules\System\Database\Seeders;


use Carbon\Carbon;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class SystemMenuSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $createdTime = Carbon::now()->toDateTimeString();
        DB::table('my_system_menu')->insert([
            [
                'pid' => 0,
                'title' => '系统模块',
                'icon' => 'dripicons-device-desktop',
                'url' => '',
                'target' => '',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 0,
                'title' => '会员模块',
                'icon' => 'dripicons-user-group',
                'url' => '',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 0,
                'title' => 'CMS模块',
                'icon' => 'dripicons-article',
                'url' => '',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 0,
                'title' => '商城模块',
                'icon' => 'dripicons-shopping-bag',
                'url' => '',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 0,
                'title' => '订单模块',
                'icon' => 'dripicons-checklist',
                'url' => '',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ],
            [
                'pid' => 0,
                'title' => '自媒体模块',
                'icon' => 'dripicons-camcorder',
                'url' => '',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ],
            [
                'pid' => 1,
                'title' => '网站配置',
                'icon' => '',
                'url' => '/system/config',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ],
            [
                'pid' => 1,
                'title' => '管理员管理',
                'icon' => '',
                'url' => '/system/admin',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ],
            [
                'pid' => 1,
                'title' => '角色管理',
                'icon' => '',
                'url' => '/system/role',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 1,
                'title' => '菜单管理',
                'icon' => '',
                'url' => '/system/menu',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 1,
                'title' => '插件管理',
                'icon' => '',
                'url' => '/system/addon',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 1,
                'title' => '辅助属性',
                'icon' => '',
                'url' => '/system/attr',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 1,
                'title' => '自定义页面',
                'icon' => '',
                'url' => '/system/diy-page',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 1,
                'title' => '配置管理器',
                'icon' => '',
                'url' => '/system/system_config',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 1,
                'title' => '模板配置',
                'icon' => '',
                'url' => '/system/template/config',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 2,
                'title' => '会员管理',
                'icon' => '',
                'url' => '/user/admin/',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 2,
                'title' => '会员等级',
                'icon' => '',
                'url' => '/user/admin/rank',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 2,
                'title' => '余额明细',
                'icon' => '',
                'url' => '/user/admin/balance',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 2,
                'title' => '积分明细',
                'icon' => '',
                'url' => '/user/admin/point',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 2,
                'title' => '收货地址',
                'icon' => '',
                'url' => '/user/admin/address',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 3,
                'title' => '文章分类',
                'icon' => '',
                'url' => '/article/admin/category',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 3,
                'title' => '文章列表',
                'icon' => '',
                'url' => '/article/admin',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 3,
                'title' => '文章标签',
                'icon' => '',
                'url' => '/article/admin/tag',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 3,
                'title' => '文章评论',
                'icon' => '',
                'url' => '/article/admin/comment',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 4,
                'title' => '商城配置',
                'icon' => '',
                'url' => '/shop/admin/config',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 4,
                'title' => '支付配置',
                'icon' => '',
                'url' => '/shop/admin/pay/config',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 4,
                'title' => '商品分类',
                'icon' => '',
                'url' => '/shop/admin/category',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 4,
                'title' => '商品列表',
                'icon' => '',
                'url' => '/shop/admin/goods',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 4,
                'title' => '支付流水',
                'icon' => '',
                'url' => '/shop/admin/pay/logs',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 5,
                'title' => '订单管理',
                'icon' => '',
                'url' => '/order/admin',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 6,
                'title' => '自媒体账号',
                'icon' => '',
                'url' => '/mp/admin/mp_account',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 6,
                'title' => '自媒体文章',
                'icon' => '',
                'url' => '/mp/admin/mp_article',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 6,
                'title' => '自媒体模板',
                'icon' => '',
                'url' => '/mp/admin/mp_template',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ], [
                'pid' => 6,
                'title' => '自媒体发布',
                'icon' => '',
                'url' => '/mp/admin/mp_push_log',
                'target' => '_self',
                'sort' => 0,
                'status' => 1,
                'created_at' => $createdTime,
                'updated_at' => $createdTime,
            ]
        ]);
    }
}
